package com.ruoyi.jiugongge.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.jiugongge.mapper.JiugonggeAwardsMapper;
import com.ruoyi.jiugongge.domain.JiugonggeAwards;
import com.ruoyi.jiugongge.service.IJiugonggeAwardsService;
import com.ruoyi.common.support.Convert;

/**
 * 九宫格奖项 服务层实现
 * 
 * @author lzy
 * @date 2019-01-21
 */
@Service
public class JiugonggeAwardsServiceImpl implements IJiugonggeAwardsService 
{
	@Autowired
	private JiugonggeAwardsMapper jiugonggeAwardsMapper;

	/**
     * 查询九宫格奖项信息
     * 
     * @param id 九宫格奖项ID
     * @return 九宫格奖项信息
     */
    @Override
	public JiugonggeAwards selectJiugonggeAwardsById(String id)
	{
	    return jiugonggeAwardsMapper.selectJiugonggeAwardsById(id);
	}
	
	/**
     * 查询九宫格奖项列表
     * 
     * @param jiugonggeAwards 九宫格奖项信息
     * @return 九宫格奖项集合
     */
	@Override
	public List<JiugonggeAwards> selectJiugonggeAwardsList(JiugonggeAwards jiugonggeAwards)
	{
	    return jiugonggeAwardsMapper.selectJiugonggeAwardsList(jiugonggeAwards);
	}
	
    /**
     * 新增九宫格奖项
     * 
     * @param jiugonggeAwards 九宫格奖项信息
     * @return 结果
     */
	@Override
	public int insertJiugonggeAwards(JiugonggeAwards jiugonggeAwards)
	{
	    return jiugonggeAwardsMapper.insertJiugonggeAwards(jiugonggeAwards);
	}
	
	/**
     * 修改九宫格奖项
     * 
     * @param jiugonggeAwards 九宫格奖项信息
     * @return 结果
     */
	@Override
	public int updateJiugonggeAwards(JiugonggeAwards jiugonggeAwards)
	{
	    return jiugonggeAwardsMapper.updateJiugonggeAwards(jiugonggeAwards);
	}

	/**
     * 删除九宫格奖项对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteJiugonggeAwardsByIds(String ids)
	{
		return jiugonggeAwardsMapper.deleteJiugonggeAwardsByIds(Convert.toStrArray(ids));
	}

	@Override
	public List<JiugonggeAwards> select() {
		// TODO Auto-generated method stub
		return jiugonggeAwardsMapper.select();
	}
	
}
